<?php include (TEMPLATEPATH . "/myfunction.php"); ?>
<div id="class" ><div class="margin-left10 margin-top3 margin-bottom10 margin-right10 title">CLASS UPDATE</div>
 <?php $ps = get_posts("category=4&post_status=publish&post_type=post&numberposts=3&orderby=date&order=DESC");
		//print_r($ps);
		global $post;
		$i =0;
     	foreach($ps as $post):
	 	setup_postdata($post);
	 
	 if(getImage('1'))
	 {
	 	$image = getImage('1');
	 }else
	 {
	 	$image =  get_option('siteurl')."/wp-content/themes/fusion/img/default.jpg";
	 }
    	 ?>
<!-- Class loop Start -->
<div class="texttoppage margin-right5 margin-top10 padding-bottom10" style="border-bottom: #CCCCCC dotted 1px;">
<div class="classthumb left margin-right10 margin-left10"><a href="<?php the_permalink(); ?>">
<img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo $image; ?>&w=69&h=69&zc=1" alt="" />
</a></div>
<div class="left" style="width:180px;">
<div class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></div>
<div class="title-excerpt"><?php the_excerpt(); ?></div>
<div class="right" style="margin: -5px 0px 0px 0px;"><a href="<?php the_permalink(); ?>"><img src="<?php bloginfo('template_url'); ?>/img/more_icon.png" alt="&gt;&gt;" /></a></div>
</div>
<div class="clear"></div>
</div>
<!-- Class loop End -->
<?php endforeach; ?>

<div class="right margin-top15 margin-right10"><a href="<?php the_permalink(); ?>" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('readmore','','<?php bloginfo('template_url'); ?>/img/read_more_button_on.gif',1)"><img src="<?php bloginfo('template_url'); ?>/img/read_more_button.gif" alt="Read more" name="readmore" width="74" height="23" border="0" id="readmore" /></a></div>
<div style="clear: both;"> </div>
</div>